aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.tes...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-16 12:59:00 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-16 12:59:00 +0000
commit071fb90e7d12c6cc177fd9414584ee47679e2dc5 (patch)
tree1b5ff60ab55ad35854bd418b98c7394dc3488b97 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parent811a0571c1f616d3c27fe2fff929ffdc2bbc4f55 (diff)
Extract PatioCodeGenClosures.create()
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected8
1 files changed, 4 insertions, 4 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index a421098a..7a6007d0 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -16,14 +16,14 @@ Compilation unit elements:
function
"shed__effectHandlerMethod__f__0"
visibility=private
- locals=((param "effectHandlerMethodPointer__0" data-ptr) (val "effectHandler__0" data-ptr) (val "effectHandler__1" data-ptr) (val "tmp__0" int))
+ locals=((param "closurePointer__0" data-ptr) (val "effectHandler__0" data-ptr) (val "effectHandler__1" data-ptr) (val "tmp__0" int))
return-type=int
body=(
(call (local "effectHandler__0") "shed__runtime__effects_get_handler" ())
(
memory-load
(local "effectHandler__1")
- pointer=(local "effectHandlerMethodPointer__0")
+ pointer=(local "closurePointer__0")
layout=(struct (function-ptr (struct (data-ptr)) (struct ())))
offset=(1 0)
)
@@ -36,13 +36,12 @@ Compilation unit elements:
Locals:
* (val "closure__f__0" int)
- * (val "effectHandlerCurrent__0" data-ptr)
* (val "closurePointer__f__0" data-ptr)
+ * (val "effectHandlerCurrent__0" data-ptr)
Instructions:
(
- (call (local "effectHandlerCurrent__0") "shed__runtime__effects_get_handler" ())
(alloc-heap (local "closurePointer__f__0") (struct (function-ptr (struct (data-ptr)) (struct ()))))
(
memory-store
@@ -51,6 +50,7 @@ Instructions:
offset=(0)
value=(function-ptr "shed__effectHandlerMethod__f__0")
)
+ (call (local "effectHandlerCurrent__0") "shed__runtime__effects_get_handler" ())
(
memory-store
pointer=(local "closurePointer__f__0")